#include "StdAfx.h"
#include "classSV.h"
#include "student.h"
#include "school.h"
#include <map>
#include <iostream>
using namespace std;

classSV::classSV(void){
}

classSV::classSV(int _id,school s)
{
	this->ID = _id;
	s.setClass(*this);
}

classSV::~classSV(void)
{
}

int classSV::getID()const{
	return this->ID;
}

void classSV::setMark(int svID, float _mark){
	this->getStudent(svID).setMark(_mark);
}

void classSV::print(){
	
}

void classSV::setStudent(student _stu){
	m_class[_stu.getID()]=_stu;
}

student classSV::getStudent(int  _stuID){
	return m_class[_stuID];
}